
//
//  SettingTimeDetailViewController.m
//  TaiHao
//
//  Created by rzm on 16/6/2.
//  Copyright © 2016年 rzm. All rights reserved.
//

#import "SampuxInstallTimeDetailVC.h"
#import "SampuxInstallTimeDetailView.h"

@interface SampuxInstallTimeDetailVC ()

@end

@implementation SampuxInstallTimeDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.navigationItem setHidesBackButton:YES];

    _detailView = [[SampuxInstallTimeDetailView alloc]initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height)];
    _detailView.selectedBtnIndex = self.markTag;
    _detailView.listModel = self.listModel;
    _detailView.tempArr = self.tempArr;
//    _detailView.configModel = self.configModel;
    _detailView.reciveModel = self.reciveModelFromVC;
    [self.view addSubview:_detailView];
    __weak typeof(SampuxInstallTimeDetailVC *) wSelf = self;
    _detailView.makeSureBlock = ^
    {
        [wSelf.navigationController popViewControllerAnimated:YES];
    };
    _detailView.backBlock = ^{
        [wSelf.navigationController popViewControllerAnimated:YES];
    };
}

- (void)reciveTimeNotification
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];
    SampuxCustomNavController *nav = (SampuxCustomNavController *)self.navigationController;
    nav.titleStr = @"定时设置详情";
    nav.rightBtn.hidden = NO;
    nav.img.image = imageNamed(@"nav");

}
@end
